package org.grow.basic.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.grow.basic.entity.ShoppingBillItem;

import java.util.List;

@Mapper
public interface ShoppingBillItemMapper {
    List<ShoppingBillItem> findByFk(@Param("fk") String fk);
    List<ShoppingBillItem> findItemsByBillCode(@Param("code") String code);

    int deleteByFk(@Param("code") String shoppingBillCode);

    int batchInsert(@Param("items") List<ShoppingBillItem> shoppingBillItems);
}